package hhm.android.library.chart.formatter;

import java.text.SimpleDateFormat;

import hhm.android.library.chart.components.AxisBase;

public class DateValueFormatter implements IAxisValueFormatter {

    @Override
    public String getFormattedValue(float value, AxisBase axis) {
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd");
        String dateString = sdf.format(value);
        String[] split = dateString.split("/");
        return split[2];
    }
}